package com.jiliason.segmentation.controller;

import com.jiliason.segmentation.entity.SegmentInputPojo;
import com.jiliason.segmentation.interfaces.ServiceMaster;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Tag(name = "分词接口")
@RestController
@RequestMapping("/AddrCorrect")
public class SegmentController {

    @Resource
    private ServiceMaster serviceMaster;

    @PostMapping()
    public String excSegment(@RequestBody SegmentInputPojo input) {
        return serviceMaster.callServiceProc(input);
    }

}
